import request from "../../utils/request";
import { getUser } from "../admin/User";



export function getCartList(currentPage) {
    return request({
        url: 'user/coupon/List',
        method: 'get',
        params: {
            page: currentPage
        }
    })
}
export function checkIsObtainCoupon(currentPage) {
    return request({
        url: 'user/coupon/checkIsObtainCoupon',
        method: 'get',
        params: {
            couponId: currentPage
        }
    })
}


export function getCoupons(couponId) {
    return request({
        url: 'user/coupon/obtainCoupon',
        method: 'get',
        params: {
            CouponId: couponId
        }
    })
}

export function getCouponByUserId() {
    return request({
        url: 'user/coupon/getCouponByUserId',
        method: 'get',
    })
}

